package com.jbm.jbmsupplier.zp.FactouryActivity.FacturyChatBaseAdapter;

/**
 * Created by 家帮忙 on 2017/7/17.
 */

public class ChatBaseAdapter {
    private AdapterSendText adapterSendText=null;
    private ReceAdapterSendText receAdapterSendText=null;
    private AdapterSendPic adapterSendPic=null;
    private ReceAdapterSendPic receAdapterSendPic=null;
    private AdapterSendAudio adapterSendAudio=null;
    private ReceAdapterSendAudio receAdapterSendAudio=null;
    private AdapterSendPay adapterSendPay=null;
    private ReceAdapterSendPay receAdapterSendPay=null;
    public ChatBaseInterfaces setTag(int tag){
     if (tag==7) {
         if (adapterSendText == null) {
             adapterSendText = new AdapterSendText();
         }
         return adapterSendText;

     }else if (tag==8) {
            if (receAdapterSendText == null) {
                receAdapterSendText = new ReceAdapterSendText();
            }
            return receAdapterSendText;

        }else if (tag==9) {
            if (adapterSendPic == null) {
                adapterSendPic = new AdapterSendPic();
            }
            return adapterSendPic;

        }else if (tag==10) {
            if (receAdapterSendPic == null) {
                receAdapterSendPic = new ReceAdapterSendPic();
            }
            return receAdapterSendPic;
        }else if (tag==11) {
            if (adapterSendAudio == null) {
                adapterSendAudio = new AdapterSendAudio();
            }
            return adapterSendAudio;
        }else if (tag==12) {
            if (receAdapterSendAudio == null) {
                receAdapterSendAudio = new ReceAdapterSendAudio();
            }
            return receAdapterSendAudio;
        }else if (tag==13) {
            if (adapterSendPay == null) {
                adapterSendPay = new AdapterSendPay();
            }
            return adapterSendPay;
        }else if (tag==14) {
            if (receAdapterSendPay == null) {
                receAdapterSendPay = new ReceAdapterSendPay();
            }
            return receAdapterSendPay;

        }
return null;

    }




}
